from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from main.views import login_variants, profile_edit, tmp_view, light_view
from tmradio.views import tmradio, tmsearch
from main.loginza_auth import complete_registration

admin.autodiscover()

urlpatterns = patterns('',

    url(r'^$', tmradio, name='home'),
    url(r'^m$', light_view, name='light_view'),
    url(r'^search/', tmsearch, name='tmsearch'),
    url(r'^blog', include('blog.urls')),
    url(r'^polls/', include('poll.urls') ),
    url(r'^tmradio/', include('tmradio.urls')),
    url(r'^editprofile', profile_edit, name='editprofile'),

    url(r'^login$', login_variants, name='login_variants'),
    url(r'^loginza/', include('loginza.urls')),
    url(r'^complete_registration/$', complete_registration, name='users_complete_registration'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', name='users_logout'),

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^tmp_view', tmp_view, name='tmp_view'),
)
